const setStorage = (key, value) => {
	const match = Object.prototype.toString.call(value).match(/\w+\s(\w+)/, 'igm');
	const type = match[1].toLowerCase();
	if(type !== 'array') {
		throw Error('setStorage(key, value) 中的value必须是object!');
		return ;
	}
	return new Promise((resolve, reject) => {
		uni.getStorage({
			key, 
			success: result => {
				const list = result.data;
				list.push(value);
			},
			fail: result => {
				const list = [];
				list.push(value);
			}
		})
	})
}